package com.hy.main.demo.json;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * @Author yang DongYong
 * @Date 2022/7/21 - 07 - 21 - 18:18
 * @Description: com.hy.main.demo.json
 * @version: 1.0
 */
public class JsonTest {
    public static void main(String[] args) {
        String json = "[{\n" +
                " \"task_status\": \"CANCELED\",\n" +
                " \"create_time\": \"2022-07-21 16:48:35\",\n" +
                " \"activity_id\": \"7ef8_4e83\",\n" +
                " \"task_result\": \"NONE\",\n" +
                " \"userid\": \"V00_1400815737560\",\n" +
                " \"taskid\": \"75115082272\",\n" +
                " \"url\": \"aflow.dingtalk.com?procInsId=Vnlah06rQtacqEg_dP7lQA03671658387310&taskId=75115082272&businessId=202207211508000304609\"\n" +
                "}, {\n" +
                " \"task_status\": \"CANCELED\",\n" +
                " \"create_time\": \"2022-07-21 16:48:35\",\n" +
                " \"activity_id\": \"7ef8_4e83\",\n" +
                " \"task_result\": \"NONE\",\n" +
                " \"userid\": \"V00_1400815737560\",\n" +
                " \"taskid\": \"75115082273\",\n" +
                " \"url\": \"aflow.dingtalk.com?procInsId=Vnlah06rQtacqEg_dP7lQA03671658387310&taskId=75115082273&businessId=202207211508000304609\"\n" +
                "}]";
        List<UserVo> list = JSONObject.parseArray(json, UserVo.class);
        System.out.println(list);
    }
}
